package a1;

public class A03_test {
    public static void main(String[] args) {
        System.out.println(Test(7));
    }
    public static String Test(int num){
        StringBuilder sb = new StringBuilder();
        while(true){
            if(num == 0){
                break;
            }
            int remainder = num % 2;
            sb.insert(0, remainder);
            num /=2;
        }
        return sb.toString();
    }
}
